<include file="__THEME__/header" />
<script type="text/javascript" src="../Public/Js/jquery.cookie.js"></script>
<script type="text/javascript" src="../Public/Js/ask.js"></script>
<link rel="stylesheet" href="../Public/Style/ask.css" type="text/css" media="screen" charset="utf-8" />
<script>
isView('{$data['info']['ask_id']}');
</script>
<div class="askMain">
	<include file="Public:header" />
	<div class="show">
		<div class="showL">
			<strong>网站导航</strong>
			<li><a href="{:U('ask/Index/index')}">问答首页</a></li>
			<li><a href="{:U('home/Index/index')}">我的微博</a></li>
			<li><a href="{:U('home/Space/index')}">我的空间</a></li>
		</div>
		<!-- end mainL -->
		<div class="showM">
			<div class="menu">
				<li class="selected"><a href="{:U('ask/Index/index')}">求助问题</a></li>
				<li class=""><a href="{:U('ask/Index/ask')}">我要提问</a></li>
			</div>
			<!-- end menu -->
			<div class="context">
				<h1>{$data['info']['ask_title']}</h1>
				<p class="c666 smenu">
					提问者:<a href="{:U('home/Space/index',array(uid=>$data['info']['user_id']))}">{$data['info']['user_name']}</a>
					浏览次数：{$data['info']['view_num']} 提问：{:date('Y-m-d
					H:i:s',$data['info']['ask_addtime'])}
				</p>
				<p>{$data['info']['ask_context']}</p>
				<?php 
             foreach($data['info']['uploads'] as $k=>$val){
             if($val['upload_path']){
             ?>
				<p>
					<a href="/data/uploads/{$val['upload_path']}" title="点击看大图"
						target="_blank">{$val['thumb']}</a>
				</p>
				<?php }}?>
			</div>
			<!-- end context -->
			<div class="comment">
				<if condition="$data['info']['ask_flag'] eq 0">
				<p style="color: red;">问题已经关闭</p>
				
				<div class="feed_list">
					<volist name="data['comment']['item']" id="val">
					<li id="global_comment_li_21" class="lineD_btm">
						<div class="userPic">
							<a target="_blank" class="null"
								href="{:U('home/Space/index',array(id=>$val['uid']))}"><img
								src="{$mid|getUserFace}"></a>
						</div>
						<div class="feed_c" style="margin-left: 65px;">
							<div style="padding-bottom: 0pt; font-size: 12px;" class="msgCnt">
								<a target="_blank" class="null"
									href="{:U('home/Space/index',array(id=>$val['uid']))}">{$val['uid']|getUserName}</a><em>({:date('Y-m-d
									H:i:s',$val['cTime'])})</em>
							</div>
							<div class="feed_c_btm">{$val['comment']}</div>
							<div class="alR"></div>
						</div>
					</li>
					</volist>
				</div>
				<else /> <if condition="$mid">
				{:W('Comment',array('type'=>'ask','appid'=>$data['info']['ask_id'],'author_uid'=>$data['info']['user_id'],'title'=>$data['info']['ask_title'],'url'=>U('ask/Index/show',array('id'=>$data['info']['ask_id'])),'table'=>'hua_comment','id_field'=>'id','comment_count_field'=>'commentCount'))}
				<else />
				<div class="box_comment" style="margin: 20px 0;">
					<textarea class="message_text text" id="comment_1001"
						style="width: 98%;" name="comment_content" cols="" rows=""></textarea>
					<a href="{:U('home/Public/login')}">登陆</a>后发表评论
				</div>
				<div class="feed_list">
					<volist name="data['comment']['item']" id="val">
					<li id="global_comment_li_21" class="lineD_btm">
						<div class="userPic">
							<a target="_blank" class="null"
								href="{:U('home/Space/index',array(id=>$val['uid']))}"><img
								src="{$mid|getUserFace}"></a>
						</div>
						<div class="feed_c" style="margin-left: 65px;">
							<div style="padding-bottom: 0pt; font-size: 12px;" class="msgCnt">
								<a target="_blank" class="null"
									href="{:U('home/Space/index',array(id=>$val['uid']))}">{$val['uid']|getUserName}</a><em>({:date('Y-m-d
									H:i:s',$val['cTime'])})</em>
							</div>
							<div class="feed_c_btm">{$val['comment']}</div>
							<div class="alR"></div>
						</div>
					</li>
					</volist>
				</div>
				</if> </if>
			</div>
			<!-- end comment -->
		</div>
		<!-- end mainM -->
		<div class="showR">
		<p><strong>推荐问题</strong></p>
			<volist name="data['hotAsk']['item']" id="val" empty="暂无推荐">
			      <li><a href="{:U('ask/Index/show',array('id'=>$val['ask_id']))}" target="_blank" title="{$val.ask_title}">{$val.ask_title|msubstr=0,15}</a><p class="ccc">{$val.user_name} - {:date('Y-m-d',$val['ask_addtime'])}</p></li>

			</volist>
		</div>
		<!--end mainR -->
	</div>
	<!-- end main -->
</div>
<!-- end askMain -->
<include file="Public:footer" />
<include file="__THEME__/footer" />
